package com.demo.structural.composite;

import java.util.ArrayList;
import java.util.List;

public class Folder implements File {
	 
	private List<File> files = new ArrayList<File>();  
	
	public void addChild(File file) {
		file.getName();
		System.out.println("添加成功");
		files.add(file);
	}

	public void getName() {
		System.out.println("folder file");
	}  

}
